//
//  NetLibProtocol.h
//  netlib
//
//  Created by mac on 13-5-18.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>


@protocol SearchCameraResultProtocol

	- (void) SearchCameraResult:(NSString *)mac Name:(NSString *)name Addr:(NSString *)addr Port:(NSString *)port DID:(NSString*)did;

@end

@protocol ImageNotifyProtocol <NSObject>

	- (void) ImageNotify: (UIImage *)image timestamp: (NSInteger)timestamp;

@end

@protocol PlaybackProtocol <NSObject>

	- (void) PlaybackStop;
- (void) PlaybackTotalTime: (NSInteger) nTotalTime;
- (void) PlaybackPos: (NSInteger) nPos;
- (void) PlaybackData: (UIImage*) image;

@end
	
@protocol PathSelectResultProtocol <NSObject>

	- (void) PathSelectResult: (NSString*) did Date: (NSString*) Date Path: (NSString*)  Path;

@end
	
@protocol NotifyEventProtocol <NSObject>

	- (void) NotifyReloadData;

@end
	
@protocol SearchAddCameraInfoProtocol <NSObject>

	- (void) AddCameraInfo: (NSString*) strCameraName DID: (NSString*) strDID;

@end
	
@protocol DBSelectResultProtocol


	- (void) SelectP2PResult:(NSString *)name DID:(NSString *)did User:(NSString *)user Pwd:(NSString *)pwd;

@end
	
@protocol SDCardRecordFileSearchProtocol <NSObject>

	- (void) SDCardRecordFileSearchResult: (NSString *) strFileName fileSize: (NSInteger) fileSize bEnd: (BOOL) bEnd;

@end
	
@protocol AlarmProtocol <NSObject>

	- (void) AlarmProtocolResult:(int)motion_armed 
motion_sensitivity:(int)motion_sensitivity 
input_armed:(int)input_armed 
ioin_level:(int)ioin_level 
alarmpresetsit:(int)alarmpresetsit 
iolinkage:(int)iolinkage 
ioout_level:(int)ioout_level 
mail:(int)mail 
snapshot:(int)snapshot 
upload_interval:(int)upload_interval ;


@end
	
@protocol DateTimeProtocol <NSObject>

	- (void) DateTimeProtocolResult:(int)now tz:(int)tz ntp_enable:(int)ntp_enable net_svr:(NSString*)ntp_svr;

@end
	
@protocol DropListProtocol <NSObject>

	- (void) DropListResult:(NSString*)strDescription nID:(int)nID nType:(int)nType;

@end
	
@protocol UserPwdProtocol <NSObject>

	- (void) UserPwdResult:(NSString*)strUser1 pwd1:(NSString*)strPwd1 user2:(NSString*)strUser2 pwd2:(NSString*)strPwd2 user3:(NSString*)strUser3 pwd3:(NSString*)strPwd3;

@end
	
@protocol WifiParamsProtocol <NSObject>

	//jstring did, jint enable, jstring ssid, jint channel, jint mode, jint authtype, jint encryp, jint keyformat, 
	//jint defkey, jstring key1, jstring key2, jstring key3, jstring key4, jint key1_bits, jint key2_bits, jint key3_bits, jint key4_bits, jstring wpa_psk)
	- (void) WifiParams: (NSString*)strDID enable:(NSInteger)enable ssid:(NSString*)strSSID channel:(NSInteger)channel mode:(NSInteger)mode authtype:(NSInteger)authtype encryp:(NSInteger)encryp keyformat:(NSInteger)keyformat defkey:(NSInteger)defkey strKey1:(NSString*)strKey1 strKey2:(NSString*)strKey2 strKey3:(NSString*)strKey3 strKey4:(NSString*)strKey4 key1_bits:(NSInteger)key1_bits key2_bits:(NSInteger)key2_bits key3_bits:(NSInteger)key3_bits key4_bits:(NSInteger)key4_bits wpa_psk:(NSString*)wpa_psk;

- (void) WifiScanResult: (NSString*)strDID ssid:(NSString*)strSSID mac:(NSString*)strMac security:(NSInteger)security db0:(NSInteger)db0 db1:(NSInteger)db1 mode:(NSInteger)mode channel:(NSInteger)channel bEnd:(NSInteger)bEnd;



@end
	
@protocol EditCameraProtocol

	- (BOOL) EditP2PCameraInfo:(BOOL)bAdd 
Name:(NSString *)name 
DID:(NSString *)did
User:(NSString *)user 
Pwd:(NSString *)pwd 
OldDID:(NSString *)olddid;

@end

	
@protocol SnapshotProtocol <NSObject>

	- (void) SnapshotNotify: (NSString*) strDID data:(char*) data length:(int) length;

@end
	
@protocol ParamNotifyProtocol <NSObject>

	- (void) ParamNotify: (int) paramType params:(void*) params;

@end
	
@protocol PPPPStatusProtocol <NSObject>

	- (void) PPPPStatus: (NSString*) strDID statusType:(NSInteger) statusType status:(NSInteger) status;

@end